package org.apache.lorry.zookeeper.cluster.demo;

import org.apache.lorry.zookeeper.cluster.Worker;

import java.util.concurrent.TimeUnit;

public class WorkerDemo2 {
    public static void main(String[] args) {
        try {
            Worker worker = new Worker("localhost:2181");
            worker.startZK();
            worker.register();
            TimeUnit.MINUTES.sleep(10);
        } catch (Exception e) {

        }
    }
}
